package com.xiaoge.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
* @Author: 冷俊杰
* @Description: 头部导航
* @DateTime: 2022/11/9 20:01
**/
@Data
@TableName(value = "edu_nav_bar")
public class EduNavBar {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)//创建时自动填充
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)//创建与修改时自动填充
    private Date gmtModified;

    /**
     * 状态(1有效, 0无效)
     */
    @TableField(value = "status_id")
    private Byte statusId;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 导航标题
     */
    @TableField(value = "nav_title")
    private String navTitle;

    /**
     * 导航url
     */
    @TableField(value = "nav_url")
    private String navUrl;

    /**
     * 跳转方式(_self,_blank)
     */
    @TableField(value = "target")
    private String target;

    public static final String COL_ID = "id";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_STATUS_ID = "status_id";

    public static final String COL_SORT = "sort";

    public static final String COL_NAV_TITLE = "nav_title";

    public static final String COL_NAV_URL = "nav_url";

    public static final String COL_TARGET = "target";
}